$(function() {
	$('.company').on('click', function() {
		popup(this)
	})
	$('.delete-list').on('click',function(){
		popup(this,"{:url('delete')}");
		
	})
	
	$('.startusing').on('click',function(){
		popup(this,"{:url('state')}");
	})
	$('.forbidden').on('click',function(){
		popup(this,"{:url('state')}");
	})
	function operation(obj,url){
		
		var number=0;	
		for(var i=1;i<$('#form-table input').length;i++){
			if($('#form-table input')[i].checked){
				number+=1
			}
		};
		popup(obj,url,number);
		
	}
	$('.car_use').on('click', function() {
		choosecar("{:url('used/index',['op'=>'search'])}");
	});
})